<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<link rel="icon" type="image/x-icon"  href="static/assets/images/logo-header-05.png"/>
<body>
<ul class="loop-pagination" th:fragment="pageNav(pageInfo, prevText, nextText, prefix)">
    <th:block th:if="${pageInfo.hasPreviousPage}">
        <li class="prev"><a th:href="@{'/'+${prefix}+'/'+${pageInfo.prePage}}" th:text="${prevText}"></a></li>
    </th:block>


    <th:block th:each="navIndex :${ pageInfo.navigatepageNums}">
        <li th:class="${pageInfo.pageNum==navIndex}?' page-numbers current':'page-numbers'"><a
                th:href="@{'/page/'+${navIndex}}"
                th:text="${navIndex}"></a></li>
    </th:block>


    <th:block th:if="${pageInfo.hasNextPage}">
        <li>
            <a th:href="@{'/'+${prefix}+'/'+${pageInfo.nextPage}}" class="page-numbers next">
                Next
                <i class="ion ion-ios-arrow-thin-right"></i>
            </a>
        </li>

    </th:block>

</ul>


</body>
</html>